<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "auction_detail".
 *
 * @property int $adid 主键id
 * @property int $pid 宠物id
 * @property int $user_id 用户id
 * @property int $amount 拍卖价格
 * @property int $created_at 拍的时间
 */
class AuctionDetail extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'auction_detail';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['pid', 'user_id', 'amount', 'created_at'], 'integer'],
            [['amount', 'created_at'], 'required'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'adid' => '主键id',
            'pid' => '宠物id',
            'user_id' => '用户id',
            'amount' => '拍卖价格',
            'created_at' => '拍的时间',
        ];
    }
}
